package com.patten.observer;

import java.util.Observable;
import java.util.Observer;

/**
 * Created with IntelliJ IDEA.
 * User: Lv.Dongjie
 * Date: 2018/8/6
 * Time: 15:47
 * Description: 测试类
 */
public class WeatherStation {
    public static void main(String[] args) {
        WeatherData weatherData = new WeatherData();
        CurrentConditionDisplay currentConditionDisplay = new CurrentConditionDisplay(weatherData);
        weatherData.setMeasurements(80,65,30.4f);

        WeatherData2 weatherData2 = new WeatherData2();
        GeneralDisplay generalDisplay = new GeneralDisplay(weatherData2);
        weatherData.setMeasurements(82,65,30.4f);

    }

}
